package com.mavenq.fly.commons.exception;

import lombok.Getter;

/**
 * 业务类异常
 */
@Getter
public class BusinessException extends RuntimeException{

    private Integer code;

    public BusinessException(String message){
        super(message);
    }

    public BusinessException(Integer code){
        this(code,"");
    }

    public BusinessException(Integer code, String message){
        super(message);
        this.code = code;
    }

}
